<template>
  <el-dialog
    title="账户转账"
    :visible.sync="visible"
    :close-on-click-modal="false"
    append-to-body
    width=500px
  >
    <el-form
      ref="main-form"
      status-icon
      :model="mainQuery"
      :rules="rules"
      label-width="180px"
      label-position="left"
      :inline="false"
    >
      <template v-if="data">
        <el-form-item label="结算币种" size="mini" prop="">
          <span>CNY</span>
        </el-form-item>
        <el-form-item label="可提现金额" size="mini" prop="">
          <span>CNY</span>
        </el-form-item>
        <el-form-item label="单笔最小可提现金额： " size="mini" prop="">
          <span>10</span>
        </el-form-item>
        <el-form-item label="单笔最大可提现金额： " size="mini" prop="">
          <span>50</span>
        </el-form-item>
        <el-form-item label="单笔提现手续费： " size="mini" prop="">
          <span>1</span>
        </el-form-item>
        <el-divider></el-divider> 
        <el-form-item label="提现金额： " size="mini" prop="">
          <el-input
            placeholder=""
            v-model="mainQuery.mchNo"
            @keyup.enter.native="fetchMainData"
            clearable
          ></el-input>
        </el-form-item>
        <el-form-item label="提现币种: " size="mini" prop="">
          <el-select
            v-model="mainQuery.currency"
            placeholder="所有"
            clearable
            @change="fetchMainData"
          >
            <el-option
              v-for="item in currencyOptions"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="对应金额: " size="mini" prop="">
          <span>6.00 USD</span>
        </el-form-item>
        <el-form-item label="对应提现手续费: " size="mini" prop="">
          <span>0.6 USD</span>
        </el-form-item>
        <el-divider></el-divider> 
        <el-form-item label="公司开户行名称 " size="mini" prop="">
          <span>XXX</span>
        </el-form-item>
        <el-form-item label="开户张账号： " size="mini" prop="">
          <span>XXXX</span>
        </el-form-item>
        <el-form-item label="开户行行号: " size="mini" prop="">
          <span>XXXX</span>
        </el-form-item>
        <el-form-item label="Google 验证码 : " size="mini" prop="">
         <el-input
            placeholder=""
            v-model="mainQuery.mchNo"
            @keyup.enter.native="fetchMainData"
            clearable
          ></el-input>
        </el-form-item>
      </template>
    </el-form>

    <div slot="footer" class="dialog-footer">
      <el-button @click="close" size="mini">关 闭</el-button>
       <el-button @click="close" type="primary" size="mini">确认提交</el-button>
    </div>
  </el-dialog>
</template>

<script>
import ApiMain from "@/api/settle.tradeTrans";

export default {
  mixins: [],
  props: ["accountTypeOptions", "eventTypeOptions", "statusOptions"],
  components: {},
  data() {
    return {
      visible: false,
      loading: false,

      mainQueryRaw: null,
      mainQuery: {},
      currencyOptions: [
        {
          labeL: "人民币",
          value: "RMB",
        },
      ],
      rules: {
        remark: [{ required: true, message: "请填写内容", trigger: "blur" }],
      },

      id: null,
      data: {},

      action: "",
      activeName: "create",
    };
  },
  mounted() {
    this.mainQueryRaw = Object.copy(this.mainQuery);
  },

  methods: {
    fetchMainData(){

    },
    show() {
      this.visible = true;
    },

    close() {
      this.visible = false;
      this.$emit("dialog-close");
    },

    reset() {
      this.mainQuery = Object.copy(this.mainQueryRaw);
      this.$refs["main-form"] && this.$refs["main-form"].resetFields();

      this.id = null;
      this.data = null;
      this.activeName = "create";
    },
  },
};
</script>

<style lang="scss" scoped>
.wire {
  height: 1px;
  width: 100%;
  background-color: red;
  margin: 20px 0px;
}
</style>
